import os

try:
  os.chdir("C:\\Users\\User\\Dir\\Ops")
except:
  pass

os.system("adb exec-out screencap -p > temp.r.png") ; open('temp.png', 'wb').write(open('temp.r.png', 'rb').read().replace(b'\r\n',b'\n'));os.remove('temp.r.png') # over Android 6
# adb shell getevent
